import request from '@/utils/http'

// export const miniLogin = (params: any) => {
//   return request.get({
//     url: '/patient/hp-user/mini/login',
//     data: params
//   })
// }
// export const getPatient = (params: any) => {
//   return request.post({
//     url: '/patient/hp-patient/get_patient',
//     data: params
//   })
// }
// 根据empi查询处方信息
export const infoGet = (params: any) => {
    return request.get({
        url: '/api/prescription/info/get/' + params,
        // data: params
    })
}
// 获取全部用药信息字典
export const infoAll = (params: any) => {
    return request.get({
        url: '/api/drug/info/all',
        data: params
    })
}
//获得频次字典
export const frequency = (params: any) => {
    return request.get({
        url: '/api/drug/info/frequency',
        data: params
    })
}
//获得单位字典
export const infoUnit = (params: any) => {
    return request.get({
        url: '/api/drug/info/unit',
        data: params
    })
}
//用药信息录入
export const infoSave = (params: any) => {
    return request.post({
        url: '/api/drug/info/save',
        data: params
    })
}
//查询体征信息
export const signsInfoList = (params: any) => {
    return request.post({
        url: '/api/signs/info/list',
        data: params
    })
}
//查询体征信息
export const drugInfoGet = (params: any) => {
    return request.get({
        url: '/api/drug/info/get/' + params,
    })
}
//获得单位字典
export const healthInfoAll = (params: any) => {
    return request.get({
        url: '/api/signs/info/all/' + params,
        // data: params
    })
}
//保存健康信息
export const healthInfoSave = (params: any) => {
    return request.post({
        url: '/api/signs/info/save',
        data: params
    })
}
//查询体征信息-时间分组
export const healthInfoMapList = (params: any) => {
    return request.post({
        url: '/api/signs/info/map',
        data: params
    })
}
//查询体征信息-时间分组
export const healthInfoUpdate = (params: any) => {
    return request.post({
        url: '/api/signs/info/update',
        data: params
    })
}

